package main

import "fmt"

type Studentl struct {
	sid    int
	name   string
	age    int8
	course []string //  选秀课程
}

func main() {
	tom := Studentl{
		sid:    0,
		name:   "tom",
		age:    1,
		course: []string{"chinese", "math", "english"},
	}
	fmt.Println(tom)
	var SS *Studentl
	SS = &tom
	fmt.Println(SS)
	fmt.Println(*SS)

	//(2)结构体在new实例化后会形成指针类型的结构体
	var jerry = new(Studentl)
	jerry.sid = 1
	(*jerry).name = "jerry"
	fmt.Println(jerry)  //&{1 jerry 0 []}
	fmt.Println(*jerry) //{1 jerry 0 []}
}
